#!/bin/bash

PROJ_PATH=$(dirname "$0")

cd $PROJ_PATH

ps -ef | grep 'cn.texous.demo.dnw.DemoNormalWebApplication' | grep -v 'grep' | awk '{printf $2"\n"}' > pids

while read pid
do
        echo $pid
        kill $pid
done < pids

rm -f pids
